package tests;

import net.thucydides.core.annotations.*;
import net.thucydides.core.pages.Pages;
import net.thucydides.junit.runners.ThucydidesRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import tests.requirements.Application;
import tests.steps.EndUserSteps;


    @Story(Application.LoginTallygram.LoginInApp.class)
     @RunWith(ThucydidesRunner.class)
     public class LoginInApp {

    @Managed(uniqueSession = true)
    public WebDriver webdriver;

    @ManagedPages(defaultUrl = "http://82.200.2.19")
    public Pages pages;

    @Steps
    public EndUserSteps endUser;

    @Issue("Login")
    @Test
    public void connectWithFB() {
        endUser.is_the_opening_page();
        endUser.connect_sigin("dusia.iwanowa1988@yandex.ru","89087921481");

        endUser.should_opening_page("Recent Activity is open");

    }

    //   public void sentMessageToCandidate() {
    // endUser.should_opening_page("Recent activity");
    //  endUser.();
    //   endUser;
// }

    // @Pending @Test
    //public void searching_by_ambiguious_keyword_should_display_the_disambiguation_page() {
    // }
}